package com.test.utils;

import com.test.base.InitAppium;
import org.testng.annotations.Test;

/**
 * Created by 80736 on 2017/4/29.
 */
public class AssertUserLogined extends InitAppium {
    private static String MAIN_ACTIVITY = "com.yf.smart.lenovo.ui.activity.MainActivity";


    @Test
    public static boolean testisLogined() {
        String currentActivity = driver.currentActivity();
        if (currentActivity.equals(MAIN_ACTIVITY)) {
            return true;
        }
        return false;
    }

}
